﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class Resume : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (null == Session["person"])
            {
                Label5.Text = "<script>alert('请登录！');window.location.href='Default.aspx';</script>";
                return;
            }
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        //上传图片
        FileUpload FU = (FileUpload)FormView1.FindControl("FU");
        string path = FU.FileName;
        string[] file = path.Split('\\');
        string filename = file[file.Length - 1];
        string path1 = Server.MapPath("");
        string ok =path1+ "\\images\\person\\" + filename;
        FU.SaveAs(ok);
        Image igGoods = (Image)FormView1.FindControl("Image1");
        igGoods.ImageUrl = "~/images/person/" + filename;
        TextBox tx = (TextBox)FormView1.FindControl("pimgsTextBox");
        tx.Text =filename;
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        //Image img=(Image)FormView12.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Response.Write("<script type='text/javascript'></script>");
        //   // Label5.Text = ;
        //}
    }
    protected void LinkButton3_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView13.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton4_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView14.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton5_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView15.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton6_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView16.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton7_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView17.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton8_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView18.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton9_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView19.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton10_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView20.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
    protected void LinkButton11_Click(object sender, EventArgs e)
    {
        //Image img = (Image)FormView21.FindControl("Image2");
        //if (img.ImageUrl.Equals("images/1.png"))
        //{
        //    Label5.Text = "<script type='text/javascript'>alert('该信息已填写！');</script>";
        //}
        //else
        //{
        //    Label5.Text = "<script type='text/javascript'></script>";
        //}
    }
}
